package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomEquipmentrepair.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Data
@Schema(description = "维修记录新增请求对象")
public class RoomEquipmentRepairVO {
    @Schema(description = "资产id")
    private Long equipmentId;

    @Schema(description = "维修资产名称")
    private String name;

    @Schema(description = "报修人ID")
    private Long applicantId;

    @Schema(description = "报修人")
    private String applicantName;

    @Schema(description = "报修原因")
    private String repairReason;

    @Schema(description = "维修费用")
    private BigDecimal repairCost;

    @Schema(description = "报修人电话")
    private String phone;

    @Schema(description = "服务内容")
    private String serviceContent;

    @Schema(description = "服务开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime beginDate;
    private String beginDateStr;

    @Schema(description = "服务结束日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endDate;
    private String endDateStr;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "报修状态")
    private String status;
}
